Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile: break apart steps in make clean #4

Merged
merged 1 commit into from
Apr 30, 2020

Conversation

xobs
Copy link

@xobs xobs commented Apr 27, 2020

Re-creating this PR here since it's grown quite stale at berkeley-abc#54

The make clean target consists of a single rm call that passes every
generated file, object file, and dependency directory. This results in
a command line that's around 53,800 characters long.

On Linux, the maximum length of a command line is 131,072 or 262,144
characters, however on Windows the limit is 32,768.

The 53,800 character command simply fails to run on Windows, which is a
problem when the first command that gets run is make clean.

Break this target into steps, first removing the output files, then the
object files, then any generated garbage, and then the object depedency
directories.

This fixes make clean (and as a result yosys) on Windows.

The `make clean` target consists of a single `rm` call that passes every
generated file, object file, and dependency directory.  This results in
a command line that's around 53,800 characters long.

On Linux, the maximum length of a command line is 131,072 or 262,144
characters, however on Windows the limit is 32,768.

The 53,800 character command simply fails to run on Windows, which is a
problem when the first command that gets run is `make clean`.

Break this target into steps, first removing the output files, then the
object files, then any generated garbage, and then the object depedency
directories.

This fixes `make clean` (and as a result yosys) on Windows.

Signed-off-by: Sean Cross <[email protected]>
@eddiehung eddiehung changed the base branch from master to yosys-experimental April 27, 2020 19:10
@eddiehung eddiehung force-pushed the yosys-experimental branch from 69e3a11 to f2316ab Compare April 27, 2020 22:09
@eddiehung eddiehung merged commit 0ee010f into YosysHQ:yosys-experimental Apr 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants